package com.bluefox.modules.system.criteria;

import com.bluefox.annotation.Query;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

/**
 *
 */
@Data
public class UserQueryCriteria implements Serializable {

    //根据用户id查询
    @Query
    private Long userId;

    /*关联查询dept   关联属性id*/
    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    private Set<Long> deptIds;
    // 多条件模糊查询
    @Query(blurry = "email,userName,nickName")
    private String blurry;

    @Query(type = Query.Type.INNER_LIKE)
    private String phoneNumber;

    @Query
    private Boolean status;


    private Long deptId;

    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createdDate;
}
